package Day6Zuoye.Car;

public class CarCenter {
    private String telePhone;
    private String address;
public void check(Car car){
    System.out.println("电话:"+telePhone+"\t地址:"+address);
    car.start();
    car.speedup();
    car.stop();
}

    public CarCenter(String telePhone, String address) {
        this.telePhone = telePhone;
        this.address = address;
    }

    public String getTelePhone() {
        return telePhone;
    }

    public void setTelePhone(String telePhone) {
        this.telePhone = telePhone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
